From 08e25b9ef7fee78b97dae4831323d950bdb10be9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 22 Sep 2015 15:14:00 -0400 Subject: [PATCH] app chooser: Avoid duplicates At the time we populate the model "initially" in constructed(), it has already been filled and cleared a couple of times (we do that every time one of the construct properties gets set). So we can't assume that the model is empty, and have to clear it first. Otherwise, we add duplicates to the list. https://bugzilla.gnome.org/show_bug.cgi?id=748080 --- gtk/gtkappchooserwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c index aa6b0dff30..7e2117ce80 100644 --- a/gtk/gtkappchooserwidget.c +++ b/gtk/gtkappchooserwidget.c @@ -813,7 +813,7 @@ gtk_app_chooser_widget_initialize_items (GtkAppChooserWidget *self) NULL); /* populate the widget */ - gtk_app_chooser_widget_real_add_items (self); + gtk_app_chooser_refresh (GTK_APP_CHOOSER (self)); } static void -- 2.30.2